<template>
	<view class="card">
		<view >——</view>
		<slot>
			<view class="card_name">{{cardTitle}}</view>
		</slot>
		<view >——</view>
	</view>
</template>

<script>
	export default{
		props:{
			cardTitle:String
		}
	}
</script>

<style scoped>
	.card{
		width: 100%;
		padding: 20rpx 0;
		display: flex;
		justify-content: center;
		font-weight: bold;
	}
	.card_name{
		padding: 0 20rpx;
		font-size: 28rpx;
	}
</style>